<script lang="ts" setup>
import {ref,defineProps} from 'vue'
import { ElButton} from "element-plus"


const props= defineProps({
    title: {
        type: String,
        default: () => ''
    },
    type:{
        type:String,
        default:()=>'add'
    }
})
const title=ref('标题')

</script>




<template>
        <ElButton style="color: rgb(255, 255, 255);"
        :icon="props.type==='add'?'CirclePlusFilled':props.type==='in'?'EditPen':'Promotion'" 
        :color="props.type==='add'?'#24d0e3':props.type==='in'?'#57c659':'#FF6B6B'"
        >
            {{props.title}}
        </ElButton>
</template>